var mongoose = require('mongoose')
mongoose.connect('mongodb://localhost/jiugu')
var Schema = mongoose.Schema
var userInfoSchema = new Schema({
	userName: {
		type: String,
		required: true
	},
	userPwd: {
		type: String,
		required: true
	},
	level: {
		type: Number,
		required: true
	}
})
module.exports = mongoose.model('userInfo', userInfoSchema)